package com.neu.carbon.flights.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.neu.common.annotation.Excel;
import com.neu.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 飞行记录对象 flights
 * 
 * @author neuedu
 * @date 2025-08-22
 */
@ApiModel("飞行记录")
public class Flights extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 飞行记录id */
    @ApiModelProperty("飞行记录id")
    private Long id;

    /** 轨迹数据 */
    @ApiModelProperty("轨迹数据")
    @Excel(name = "轨迹数据")
    private String record1;

    /** 传感即数据 */
    @ApiModelProperty("传感即数据")
    @Excel(name = "传感即数据")
    private String record2;

    /** 飞行场景 */
    @ApiModelProperty("飞行场景")
    @Excel(name = "飞行场景")
    private String name;

    /** 结束时间 */
    @ApiModelProperty(value="结束时间",example = "2021-09-10")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    /** 距离 */
    @ApiModelProperty("距离")
    @Excel(name = "距离")
    private Long distance;

    /** 时长 */
    @ApiModelProperty("时长")
    @Excel(name = "时长")
    private String duration;

    /** 任务id */
    @ApiModelProperty("任务id")
    @Excel(name = "任务id")
    private Long taskId;

    /** 成绩 */
    @ApiModelProperty("成绩")
    @Excel(name = "成绩")
    private Long score;

    /** 学生id */
    @ApiModelProperty("学生id")
    @Excel(name = "学生id")
    private Long userId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRecord1(String record1) 
    {
        this.record1 = record1;
    }

    public String getRecord1() 
    {
        return record1;
    }
    public void setRecord2(String record2) 
    {
        this.record2 = record2;
    }

    public String getRecord2() 
    {
        return record2;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setDistance(Long distance) 
    {
        this.distance = distance;
    }

    public Long getDistance() 
    {
        return distance;
    }
    public void setDuration(String duration) 
    {
        this.duration = duration;
    }

    public String getDuration() 
    {
        return duration;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("record1", getRecord1())
            .append("record2", getRecord2())
            .append("name", getName())
            .append("createTime", getCreateTime())
            .append("endTime", getEndTime())
            .append("distance", getDistance())
            .append("duration", getDuration())
            .append("taskId", getTaskId())
            .append("score", getScore())
            .append("userId", getUserId())
            .toString();
    }
}
